home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5629 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: ns.neckar-alb.de!wiedmann
  2. From: wiedmann@wiedmann.neckar-alb.de (Jochen Wiedmann)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: GCC C++ questions
  5. Date: 17 Mar 1996 22:48:11 GMT
  6. Organization: ISS Internet Service Stuttgart GmbH
  7. Message-ID: <4ii4rb$8oe@iss1.neckar-alb.de>
  8. References: <314c6829@usura.metropolis.nl>
  9. Reply-To: wiedmann@neckar-alb.de
  10. NNTP-Posting-Host: wiedmann.neckar-alb.de
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Hello, Jurjen,
  14.  
  15. : This compiles OK, but the executable is 69KB! A bit too large, IMHO. ;-) I
  16. : understand that GCC uses ixemul.library, and that there is another library
  17. : that's better for programs not ported from UN*X, namely libnix.library. So,
  18. : how do I install libnix.library (the docs say "don't forget to link it")?
  19. : I don't know how to "link" it.
  20.  
  21. You can, of course, use the "-noixemul" switch with both gcc and g++,
  22. but this won't help:
  23.  
  24. libstdc++ and libg++ are using there very own stdio which is far away from
  25. that of both ixemul.library and libnix. Thus your are forced to include
  26. almost all i/o related code from this libraries which results in big code,
  27. at least big for a hello-world.
  28.  
  29. This won't ever be fixed as long as noone is writing an Amiga related
  30. libg++-replacement. I doubt this will ever happen.
  31.  
  32.  
  33. You are not the first one who claims about this and you are not the first one
  34. who is overestimating this fact. Usually you won't use g++ for smaller
  35. projects, but for bigger projects and an additional amount of some 64 KByte
  36. really isn't that important if the executable is 500KByte or more.
  37.  
  38. Drop g++ or accept it - there's no way around.
  39.  
  40.  
  41. Jochen
  42.